//
//  XCYProConst.h
//  CoachAssistant
//
//  Created by XCY–hqF on 16/3/11.
//  Copyright © 2016年 XCY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

//获取系统版本号
#define iOSVerson ([[UIDevice currentDevice].systemVersion doubleValue])
//通知XCYNotificationCenter和持久化XCYUserDefaults
#define YQNotificationCenter [NSNotificationCenter defaultCenter]
//数据存储
#define YQUserDefaults [NSUserDefaults standardUserDefaults]

//颜色自定义和随机颜色
//(r) ... 的括号是因为有时候传入的是 100+2
#define YQColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define YQRandomColor YQColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))

//得到当前设备的宽高
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

//用户头像
#define YQUserHeadImage @"YQUserHeadImage"
//找货提示
#define YQTipViewCountKey @"YQTipViewCountKey"
//找货提示最大次数
#define YQTipViewMaxCount 5
//超时时间，60秒
#define YQTimeoutInterval 60
//透明度
#define YQCoverAlpha 0.5

//以5标准来放大
#define SizeScale5 ((SCREEN_HEIGHT > 568) ? SCREEN_HEIGHT / 568 : 1)
//以6标准来放大
#define SizeScale6 ((SCREEN_HEIGHT > 667) ? SCREEN_HEIGHT / 667 : 1)
//设置字体大小
#define setSystemFont(f) [UIFont systemFontOfSize:f]
//字体大小为18
#define setFont18 [UIFont systemFontOfSize:18.0 * SizeScale6]
//字体大小为16-17
#define setFont17 [UIFont systemFontOfSize:17.0 * SizeScale6]
#define setFont16 [UIFont systemFontOfSize:16.0 * SizeScale6]
//说明性文字14-15
#define setFont14 [UIFont systemFontOfSize:14.0 * SizeScale6]
#define setFont15 [UIFont systemFontOfSize:15.0 * SizeScale6]
//较小的文字10-13
#define setFont13 [UIFont systemFontOfSize:13.0 * SizeScale6]
#define setFont12 [UIFont systemFontOfSize:12.0 * SizeScale6]
#define setFont11 [UIFont systemFontOfSize:11.0 * SizeScale6]
#define setFont10 [UIFont systemFontOfSize:10.0 * SizeScale6]

//登录注册模块的输入框的高度
#define XCYTextFieldHeight 40 * SizeScale6
//操作按钮的高度
#define XCYOpeatorButtonHeight 45 * SizeScale6
//域名地址
#define YQUserDomainApi [YQUserDefaults objectForKey:YQDomainApiUrlString]
#define YQDomainUrlString (YQUserDomainApi ? YQUserDomainApi : YQDomainApi)

//DEBUG是系统自带的，发布的时候是release
#ifdef DEBUG
#define YQLog(...) NSLog(@"%s %d \n %@\n\n", __func__, __LINE__, [NSString stringWithFormat:__VA_ARGS__])
#else
#define YQLog(...)
#endif

/**
 *当前info的版本号
 */
//extern NSString * const XCYCFBundleVersion;

/**
 *  分割线的高度_0.5
 */
extern CGFloat XCYLineHeight_Small;
/**
 *  分割线的高度_1
 */
extern CGFloat XCYLineHeight_Normal;
/**
 *  ToolBar底部工具条的高度
 */
extern CGFloat XCYToolBarHeight;
/**
 *  StatusBar状态栏的高度
 */
extern CGFloat XCYStatusBarHeight;
/**
 *  NavBar顶部的高度
 */
extern CGFloat XCYNavBarHeight;
/**
 *  Cell的高度、顶部条的高度
 */
extern CGFloat XCYHeight_44;
//边距
extern CGFloat XCYMargin_5;
extern CGFloat XCYMargin_10;
extern CGFloat XCYMargin_15;
extern CGFloat XCYMargin_20;
extern CGFloat XCYMargin_25;
extern CGFloat XCYMargin_30;
extern CGFloat XCYMargin_35;
extern CGFloat XCYMargin_40;
extern CGFloat XCYMargin_45;
extern CGFloat XCYMargin_50;

/**
 *  第一页
 */
extern NSInteger XCYStartPageIndex;
/**
 *  列表显示的条数默认
 */
extern NSInteger XCYListPageSizeDefault;

//分组表格的头尾间隔距离为0
extern CGFloat XCYTableHead0;


//所有接口返回的数据格式===============================================================
extern NSString * const YQSPage;    //page
extern NSString * const YQSCount;  //count
extern NSString * const YQSErrorCode;  //error_code
extern NSString * const YQSMsg;      //msg
extern NSString * const YQSTotalNum;    //total_num
extern NSString * const YQSTotalPage;  //total_page
extern NSString * const YQSNext;    //next
extern NSString * const YQSPrev;    //prev
extern NSString * const YQSDatas;  //datas
extern NSString * const YQSAttrs;  //attrs
extern NSString * const YQSMember;  //member
extern NSString * const YQSAppToken;  //appToken
extern NSString * const YQDomainApiUrlString;  //域名地址

//域名地址===============================================================
//接口域名
extern NSString * const YQDomainApi;      //正式
extern NSString * const YQTestDomainApi;  //测试

//是否adminyiqiquanApp
extern BOOL const isAdminApp;
extern NSString * const yiqiquanScheme;
extern BOOL const isDeBug;  

